@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700&subset=latin-ext,latin);

html,body {
    font: normal 14px "Helvetica", "Arial", sans-serif;
    position: relative;
    height: 100%;
}

body {
    background: #8caaad url(../images/bg.jpg) no-repeat center top;
    color: white;
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
	font-family: 'Source Sans Pro', sans-serif;
	text-shadow: 0 1px 0 rgba(0,0,0,.5);
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child {
	margin-top: 0;
}

a {
    color: white;
    text-decoration: underline;
}

.wrapper {
	display: block;
	width: 960px;
	margin: 0 auto;
	position: relative;
}



/*****/

#header {
	position: relative;
	height: 140px;
	margin-bottom: 30px;
}

#header #logo {
    display: block;
    width: 400px;
    height: 60px;
    position: absolute;
    top: 40px;
    left: 0px;
    background: url(../images/scm-logo.png);
    overflow: hidden;
    text-indent: -500px;
}

#header #user-menu {
    position: absolute;
    top: 0px;
    right: 0px;
    background: rgba(0,0,0,.2);
    padding: 10px 20px;
    white-space: nowrap;
}

#header #user-menu:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(../images/icons.png) no-repeat -120px -20px;
    vertical-align: middle;
    margin: 0 5px 0 0;
    position: relative;
    top: -1px;
}

#header #main-menu {
	position: absolute;
	top: 63px;
	right: 0px;
}

#header #main-menu ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

#header #main-menu ul li {
	display: inline-block;
	margin-left: 15px;
}

#header #main-menu ul li a {
	text-decoration: none;
	font: normal 16px 'Source Sans Pro', sans-serif;
	color: white;
	text-transform: uppercase;
}

#header #main-menu ul li a:hover,
#header #main-menu ul li a.active-link {
	border-bottom: 3px solid white;
}



/*****/

#content {
	position: relative;
}



/*****/

#footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: black;
    color: #aaa;
    font-size: 12px;
    padding: 12px 0;
}


/*****/

.table {
	width: 100%;
	border-bottom: 1px solid rgba(0,0,0,.3);
	margin-bottom: 30px;
	margin-top: 30px;
	background: white;
	color: #555;
	box-shadow: 2px 2px 2px rgba(0,0,0,.1);
}

.table tr th {
	text-align: left;
	padding: 5px 10px;
	border: 1px solid rgba(0,0,0,.3);
	border-width: 1px 0;
	background: #333;
	color: white;
}

.table tr td {
	padding: 5px 10px;
}

.table tr td:first-child,
.table tr th:first-child {
    padding-left: 15px;
}

.table tr td:last-child,
.table tr th:last-child {
    padding-right: 15px;
}

.table tr:not(.table-row-empty):nth-child(2n+1) {
	background: rgba(0,0,0,.05);
}

.table tr:not(.table-row-empty):hover {
	background: rgba(0,0,0,.3);
	color: white;
}

.table tr:hover .icon {
	background-position-y: -20px;
}

.table-column-id {
	width: 20px;
	text-align: right !important;
	overflow: hidden;
        text-transform: uppercase;
}

.table-column-options {
	text-align: right !important;
	min-width: 50px;
}

.table-row-empty td{
    text-align: center;
    font-style: italic;
}

.table-row-empty td:after,
.table-row-empty td:before {
    content: "–";
}

.table a {
    color: #ed1b23;
    text-decoration: underline;
}

.table tr:hover a {
    color: white;
}



/*****/

.form {
	display: block;
	margin-bottom: 30px;
}

.form .errors,
.form .messages {
    width: 60%;
    min-width: 300px;
}

.form-field {
	margin-bottom: 5px;
	padding-left: 165px;
	line-height: 35px;
	/*border: 1px solid #000; xborder*/
}

.form-field:after {
	content: " ";
	display: block;
	clear: both;
}

.form-field label:first-child {
	float: left;
	margin-left: -165px;
	width: 150px;
	text-align: right;
}

.form-field input[type="password"],
.form-field input[type="text"],
.form-field select,
.form-field textarea {
	font-size: 14px;
	padding: 6px 10px;
	width: 250px;
	box-shadow: inset 0 2px 1px rgba(0,0,0,.1);
	border: 1px solid rgba(0,0,0,.4);
        background-color: white;
}

.form-field select {
    -webkit-appearance: button;
    -moz-appearance: button;
    -ms-appearance: button;
    -o-appearance: button;
    appearance: button;
    
    background-image: url(../images/select-icon.png);
    background-position: 100% 55% !important;
    background-repeat: no-repeat !important;
}

.form-field-submit {
	margin-top: 15px;
}

.form fieldset {
	border: none;
	border-top: 1px solid rgba(255,255,255,.5);
	margin-bottom: 20px;
}

.form fieldset legend {
	font: bold 20px 'Source Sans Pro', sans-serif;
	text-shadow: 0 1px 0 rgba(0,0,0,.5);
	margin-bottom: 10px;
	padding: 0 10px;
	margin-left: 10px;
}



/*****/

.list-options {
	position: absolute;
	top: 5px;
	right: 0;
}



/*****/

.button {
	display: inline-block;
	background: #333;
	padding: 8px 15px;
	text-align: center;
	min-width: 100px !important;
	color: white;
	border: none;
	box-shadow: 2px 2px 2px rgba(0,0,0,.2);
	font-size: 14px;
	text-transform: uppercase;
	cursor: default;
	text-decoration: none;
	font-weight: bold;
	line-height: 20px;
	border-radius: 5px;
        cursor: pointer;
        margin: 0 5px 0 0;
}

.button:hover,
.button-hot:hover {
	background: white !important;
	color: #ed1b23 !important;
}

.button:last-child {
    margin-right: 0;
}

.button .icon {
	margin: 0 5px 0 0;
	background-position-y: -20px;
	top: -1px;
}

.button:hover .icon {
	background-position-y: -40px !important;
}

.button-hot {
	background: #ed1b23 !important;
}



/*****/

.icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	vertical-align: middle;
	position: relative;
	background: url(../images/icons.png) no-repeat;
	margin: 0 5px;
	border-radius: 20px;
}

.icon-delete { background-position: 0 0 }
.icon-check { background-position: -20px 0 }
.icon-edit { background-position: -40px 0 }
.icon-plus { background-position: -60px 0 }
.icon-info { background-position: -100px 0 }
.icon-user { background-position: -120px 0 }

.icon-white { 
    background-position-y: -20px;
}

.icon-white.icon-delete { background-position: 0 -20px }
.icon-white.icon-check { background-position: -20px -20px }
.icon-white.icon-edit { background-position: -40px -20px }
.icon-white.icon-plus { background-position: -60px -20px }
.icon-white.icon-info { background-position: -100px -20px }
.icon-white.icon-user { background-position: -120px -20px }

a .icon,
a.icon {
    opacity: .75;
}

a:hover .icon,
a.icon:hover {
    opacity: 1;
}



/*****/

.errors,
.messages {
    margin: 0 0 20px 0;
    padding: 10px 15px;
    list-style-type: none;
    box-shadow: 2px 2px 2px rgba(0,0,0,.3);
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,.2);
    color: black;
    background: lightcyan;
    display: block;
}

.errors {
    background: lightgoldenrodyellow;
}

.errors li:not(:last-child),
.messages li:not(:last-child) {
    margin-bottom: 5px;
}

.errors li:before,
.messages li:before {
   content: " ";
   background-image: url(../images/icons.png);
   background-repeat: no-repeat;
   display: inline-block;
   width: 20px;
   height: 20px;
   vertical-align: middle;
   margin-right: 5px;
   position: relative;
   top: -1px;
   opacity: .7;

   -webkit-transform: scale(0.7);
   -moz-transform: scale(0.7);
   -ms-transform: scale(0.7);
   -o-transform: scale(0.7);
   transform: scale(0.7);
}

.messages li:before {
   background-position: -100px 0;
}

.errors li:before {
    background-position: 0 0;
}



.dialog {
    position: fixed;
    width: 400px;
    background: white;
    padding: 25px 25px 100px;
    border-radius: 7px;
    box-shadow: 0 0 30px rgba(0,0,0,.4);
    color: black;
}

.dialog-fog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.2);
}

.dialog-close {
    
}

.dialog-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    border: 1px solid rgba(0,0,0,.2);
}